home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / language / embedded / mcu11 / pcbugb.arc / PCBUG11.HLP < prev    next >
Text File  |  1990-11-14  |  55KB  |  1,217 lines

  1. *MENU
  2. PCbug11's command line can be edited using a number of keys on the host
  3. computer. In addition there is a recall buffer which holds the last 16
  4. commands entered. The following keys provide the edit and recall
  5. features:
  6.  
  7. left arrow     - move cursor back 1 character
  8. right arrow    - move cursor forward 1 character
  9. Home           - move cursor to first character
  10. End            - move cursor to last character
  11. delete left    - delete to left of cursor
  12. Del            - delete at cursor position
  13. CTRL End       - delete from cursor position to end of line
  14. Ins            - insert at cursor position (cursor changes to blocked
  15.                cursor)
  16. up arrow       - recall last entered command
  17. down arrow     - recall last command in recall buffer
  18. Esc            - Clear command line
  19.  
  20. In addition, the Esc key can be used to terminate most commands in
  21. progress. e.g. MD, DASM, ASM.
  22. The 4 lines above the command line provide a trace of  the last 4
  23. commands executed.
  24. The next line above this displays break point and last error messages.
  25.  
  26. An error code is returned to MS-DOS, with one of the following meanings:
  27. Error Code     Meaning
  28. ----------     -------
  29.      0         No error
  30.      1         VERF error
  31.      2         MS or BF error
  32.      3         Talker communication failure.
  33.  
  34. In MS-DOS Batch files the error code can be checked with ERRORLEVEL.
  35.  
  36.  
  37. Monitor  Commands
  38.  
  39. The following is a list of all commands available from PCbug11, with a
  40. short description of their function. A more detailed description
  41. follows.
  42.  
  43. PCbug11 Command Summary
  44.  
  45. ASM addr [mne|dir]            - Call symbolic macro line assembler, with
  46.                               option to auto insert mnemonic or
  47.                               directive
  48. BAUD [rate]                   - Display/Set serial baud rate
  49. BF addr1 [addr2] byte|word    - Block fill memory with byte or word
  50. BL                            - Display breakpoints
  51. BR [addr [macroname]]         - Display/Set break point
  52.                               [with optional Command Macro execution]
  53. CALL addr                     - Execute the subroutine at addr
  54. CLRM                          - Clear all Command Macros
  55. CLS                           - Clear main window
  56. CONTROL [parameter]           - Display/Change PCbug11 system
  57.                               parameters
  58. DASM addr1 [addr2]            - Disassemble from addr1 [to addr2]
  59. DB startaddr [endaddr]        - Display MCU Memory
  60. DEBUG                         - Reserved word
  61. DEFINE symbol value|address   - Define a symbol
  62. DEFM macrnam|TRACE|AUTOSTART  - Define Command,Trace or Autostart
  63.                               Macro
  64. DELM macrnam|TRACE|AUTOSTART  - Delete Command,Trace or Autostart
  65.                               Macro
  66. DIR [mask]                    - Display Disk Directory
  67. DOS [command]                 - Shell to DOS/Execute DOS command
  68. EDITM macrnam                 - Edit a macro
  69. EEPROM [startaddr [endaddr]]  - Display/Clear/Set EEPROM Address
  70.                               Range(s)
  71. EEPROM DELAY option           - Set EEPROM erase/write programming
  72.                               time
  73. EEPROM ERASE [option]         - Display/Change EEPROM Erase-before-
  74.                               Write
  75. EPROM [startaddr [endaddr]]   - Display/Clear/Set EPROM Address
  76.                               Range(s)
  77. EPROM DELAY option            - Set EPROM erase/write programming
  78.                               time
  79. FIND byte|word addr1 addr2    - Find all occurrences of byte or word
  80.                               between addr1 & addr2
  81. FIND mnemonic addr1 addr2     - Find all occurrences of mnemonic
  82.                               between addr1 & addr2
  83. G [addr]                      - Start User Code Execution
  84. HELP                          - Display Help Information
  85. KLE                           - Kill last error message
  86. LOADM [filename] [macroname]  - Load Macro Definitions from Default/User
  87.                               File
  88. LOADS filename [loadaddr]     - Load S Record File into MCU Memory
  89. LS symbol                     - Display symbols
  90. LSTM [mname|TRACE|AUTOSTART]  - Display Macro Names/Definitions
  91. MD startaddr [endaddr]        - Display MCU Memory
  92. MM addr                       - Modify memory from addr
  93. MOVE addr1 addr2 addr3        - Move MCU Memory between addr1 &
  94.                               addr2 to addr3
  95. MS addr byte|word [byte|word] - Set MCU Memory Byte(s) or Word(s)
  96. MSG [string]                  - Display Message in Main Window
  97. NOBR [address]                - Remove all/specified Break Points
  98. PAUSE [ms]                    - Wait for any Key Press/Delay Time
  99. PRINT                         - Display PCbug11 version number
  100. PROTECT [startaddr [endaddr]] - Display/Clear/Set Write Protected
  101.                               Address Range(s)
  102. QUIT [Y]                      - Terminate PCbug11 session [without
  103.                               confirming]
  104. RD [T]                        - Display/Trace MCU Registers
  105. RESET [addr]                  - MCU Hardware Reset with Existing/New
  106.                               Reset Vector.
  107. RESTART [option]              - Restart PCbug11 with Same/New Option.
  108. RM                            - Modify MCU Registers in window
  109. RS register value             - Set value of MCU register
  110. S                             - Stop User Code Execution
  111. SHELL ["command" ;P]          - Shell to DOS/ Execute DOS command
  112. SAVEM [filename]              - Save Macro Definitions in Default/User
  113.                               File
  114. T [addr]                      - Trace User Code
  115. TERM [X1 Y1 X2 Y2]            - Simple windowed terminal emulator
  116. TYPE filename                 - Display Disk file in Main Window
  117. UNDEF symbol                  - Undefine a symbol
  118. VER                           - Display version number
  119. VERF ERASE addr1 [addr2]      - Verify that memory contains $FF
  120. VERF SET addr1 addr2 value    - Verify that memory contains value
  121. VERF filename [memaddr]       - Verify S record disk file against memory
  122. WAIT [ms]                     - Wait for ms
  123.  
  124. Special Key operations:
  125. CTRL B                        - Send Break on COM channel
  126. CTRL P                        - Toggle MCU Memory Write Protect/RTS
  127.                               line
  128. CTRL R                        - Attempt to re-synchronise talker
  129.  
  130. EVM Compatible commands
  131.  
  132. These commands operate in a similar manner to the command of the same
  133. name on the Motorola 68HC11 EVM systems.
  134.  
  135. ASM, BF, BR, G, HELP, MD, MM, NOBR, RD, RM
  136.  
  137. CDS8 Compatible commands
  138.  
  139. These commands operate in a similar manner to the command of the same
  140. name on the Motorola CDS8 system.
  141.  
  142. ASM, BAUD, DB, DEFINE, G, HELP, LS, RD, RS, SHELL, T, UNDEF, VER, WAIT
  143. *ASM addr [mne|dir] - Call symbolic macro line assembler, with
  144.                     option to auto insert mnemonic/directive
  145.  
  146. Provides single line assembly/disassembly in main window.
  147. The assembler is a single pass version of ASMHC11 2.6 and thus supports
  148. the same mnemonics and directives. Symbols can be defined within ASM
  149. using the standard Motorola syntax. Alternatively, symbols from an
  150. (equate) file may be loaded using the INCL operand. Note that mnemonics
  151. must be preceded by at least one space following the '>' prompt,
  152. otherwise they are treated as labels The same text editing features are
  153. available as on the command line.
  154. The following keys provide additional features:
  155.  
  156. up arrow       decrement prog counter by one.
  157. down arrow     increment prog counter by one.
  158. enter          move prog counter to next instruction boundary.
  159. Esc            Exit ASM and return to command line.
  160.  
  161. In PCbug11 there is the ability to optionally specify on the command
  162. line, a mnemonic or directive. If this is done, the ASM command
  163. automatically inserts the mnemonic or directive, and immediately returns
  164. to the command line. This allows mnemonic insertion or ASM directives to
  165. be executed from within a macro, without any input from the user.
  166.  
  167. Usage:
  168. ASM $100       Assemble from memory address $100
  169. ASM $100 INCA  Insert INCA instruction at memory address $100
  170.  
  171. ASM Error messages
  172. These are reported in the form of numbers the key to which is shown
  173. below
  174.  
  175. Error no. Meaning
  176.  
  177. 1         Memory fault   : Memory did not modify as expected
  178. 200       Syntax         : Illegal character in that context
  179. 202       Syntax         : Syntax error
  180. 204       Syntax         : Label required (for EQU or SET)
  181. 212       Operand        : Improper termination of operand field
  182. 213       Operand        : Illegal addressing mode for operand
  183. 214       Address        : Illegal forward reference
  184. 223       Address        : Invalid addressing mode for 68HC11
  185. 234       Symbol         : Redefined symbol
  186. 235       Symbol         : Undefined symbol
  187. 238       Symbol         : Undefined operation
  188. 320       Symbol         : Error table overflow
  189. 321       Symbol         : Symbol table overflow
  190. 250       Data           : Displacement too large (normally branch)
  191. 251       Data           : Value out of range
  192. 252       Data           : Address too large for forced direct
  193. 255       Data           : Division by zero
  194.  
  195. 501       File           : File not found
  196. *BAUD [rate]   - Display/Set serial baud rate
  197.  
  198. Allows user to change the PC's serial baud rate. This command accesses
  199. the PC's hardware directly, to allow a wider range of baud rates than
  200. can be selected by the  MODE command. After execution, the actual baud
  201. rate is displayed. This may be different to the requested baud rate.
  202. Values in excess of 9600 are available - with a maximum of 38400 baud.
  203.  
  204. Note 1: To maintain Talker contact, the MCU's baud rate must first be
  205. set up to the new value. This can either be done by changing the
  206. appropriate talker code, or executing an MS command to dynamically
  207. change the MCU's baud rate register.
  208.  
  209. Note 2: The default baud rate for bootstrap download is approximately
  210. 7812, and for talker communication it is 9600. These may be changed by
  211. specifying a different baud rate when PCbug11 is started from the MS-
  212. DOS? command line. This feature has been added to allow PCbug11 and all
  213. talker codes to work without modification with different MCU crystal
  214. frequencies. e.g. if the MCU crystal is 4MHz, then to start up an
  215. MC68HC11A8 in bootstrap mode the command is: PCBUG11 -A 3906 This will
  216. ensure that PCbug11 uses half the default values (i.e 3906=7812/2) for
  217. both download and TALKER communication.
  218.  
  219. Note 3: Changing the baud rate will affect the minimum EEPROM
  220. programming time, as the EEPROM programming algorithm used by PCbug11
  221. relies on the serial data transfer time.
  222.  
  223. Usage:
  224. BAUD           Display current Serial baud rate.
  225. BAUD 19200     Change baud rate to 19200 baud.
  226. *BF addr1 [addr2] byte|word        - Set MCU Memory Byte(s) or Word(s)
  227.  
  228. This command forces an 8 bit or 16 bit value into MCU memory, starting
  229. at address <addr1> and finishing at address <addr2>. If <addr2> is not
  230. specified then only <addr1> itself is modified. If the starting address
  231. is in an EEPROM block (as specified by the EEPROM command), then an
  232. EEPROM algorithm will be used to store the value. This action is
  233. completely transparent to the user. Block fill automatically verifies
  234. the contents of memory filled.
  235.  
  236. Note: When setting memory to $00, ensure that the $00 is not specified
  237. in the most significant byte of a 16 bit value, as this will be
  238. interpreted as an
  239. 8 bit value and may result in incorrect addressing of MCU memory.
  240.  
  241. Usage:
  242. BF $1000 $AA        Set MCU memory address $1000 to a value of $AA
  243. BF $C000 $CFFF $D3  Set MCU memory addresses $C000 to $CFFF to the value
  244.                     $D3.
  245. BF $00 $FF $FF00    Set MCU memory addresses $00 to $FF to values
  246.                     $FF,$00,$FF,$00 alternately.
  247.  
  248. Related commands: DB,MD,MS
  249. *BL            - Display Breakpoints
  250.  
  251. This command displays the list of current breakpoints. The breakpoint is
  252. displayed in hexadecimal format and followed by a macro name if one is
  253. defined.
  254.  
  255. Usage:
  256. BL                  Display the hexadecimal address of all user defined
  257.                     breakpoints. Any command macro tagged to the
  258.                     breakpoint is displayed in brackets () after the
  259.                     breakpoint
  260.  
  261. Related commands: BR,NOBR
  262. *BR [addr [macroname]]   - Display/Set break points [with optional
  263.                          Command Macro execution]
  264.  
  265. This command installs an entry in a breakpoint table, to permit
  266. suspension of user code execution initiated by the G command.
  267.  
  268. Breakpoints are set in MCU memory only when the user starts execution of
  269. code with the G command. Before control is passed to user code, a SWI
  270. instruction is placed at every breakpoint address specified in the
  271. breakpoint table. PCbug11 can handle user placed SWIs, with some
  272. overhead, provided the user's SWI vector is downloaded from an S record
  273. file using the LOADS command, and there are no breakpoints at the user
  274. SWI instructions. Note that when PCbug11 is first started, it reads the
  275. MCU's SWI vector and treats it as the user's.
  276.  
  277. It is possible to have a macro run on reaching a particular breakpoint.
  278. If the macro is not defined then PCbug11 will behave as if no macro had
  279. been specified. If when listing breakpoints the macro selected is not
  280. defined then the name of the macro is displayed preceded by ?. If no
  281. macro has been defined for the breakpoint then the macro is displayed as
  282. (-).
  283.  
  284. Usage:
  285. BR                  Display the hexadecimal address of all user defined
  286.                     breakpoints. Any command macro tagged to the
  287.                     breakpoint is displayed in brackets () after the
  288.                     breakpoint address.
  289. BR $C0F1 $C045      Set breakpoints at MCU addresses $C0F1 and $C045.
  290. BR $C023 DISPREG    Set breakpoint at MCU address $C023 and execute
  291.                     macro DISPREG  when the breakpoint is reached.
  292.  
  293. Related commands: BL,NOBR
  294. *CALL addr          - Execute the subroutine at addr
  295.  
  296. This command causes the monitor to execute the MCU code located at
  297. <addr>. The MCU code must be terminated by an RTS instruction, otherwise
  298. monitor operation may be affected. The command has the same affect as
  299. the MCU instruction JSR <addr>. The current state of the monitor is
  300. unaffected.
  301.  
  302. Related command:  G
  303. *CLRM               - Clear all Command, Trace and Autostart Macros
  304.  
  305. This command removes all macro names and definitions from the current
  306. library, including the TRACE macro. It does not affect libraries stored
  307. on disc with the SAVEM command.
  308.  
  309. Related commands: DEFM,DELM,EDITM,LSTM,SAVEM,LOADM
  310. *CLS                     - Clear the main window
  311.  
  312. This command clears the main (blue) window on the screen. It also clears
  313. the last error/breakpoint messages if they are present.
  314.  
  315. Related commands: KLE
  316. *CONTROL [parameter]     - Display/Change PCbug11 system parameters
  317.  
  318. If no parameters are specified, then this command displays certain
  319. parameters used by PCbug11, which can be modified by the user. The
  320. available parameters and their functions are as follows:
  321.  
  322. CONTROL HARDWARE         Access serial COM port directly through
  323.                          hardware
  324. CONTROL BIOS             Access serial COM port through BIOS calls
  325. CONTROL RTS              Control RTS level directly.
  326. CONTROL PROTECT          Use RTS to provide memory write protect
  327.                          function
  328. CONTROL TIMEOUT value    Specify value of serial COM timeout during
  329.                          input
  330. CONTROL COM1|COM2        Specify which COM port to use
  331. CONTROL ERRMSG 0|1       Disable or enable display of memory error
  332.                          messages
  333. CONTROL LAST             Toggle last error message window on/off
  334.                          (default on)
  335.  
  336. On startup, PCbug11 determines whether hardware access is possible, and
  337. if so, it uses this mode, and enables direct control of the RTS,
  338. otherwise it uses BIOS calls to the COM port, and enables memory write
  339. protect control. COM1 is used by default, but can be changed by
  340. specifying port=2 on the command line when starting PCbug11. e.g.
  341. PCBUG11 -A port=2
  342. (See DEFM,SAVEM,LOADM for details of macro libraries)
  343. *DASM addr1 [addr2]           - Disassemble from addr1 [to addr2]
  344.  
  345. Disassembles MCU memory from address <addr1> for approximately 15 bytes,
  346. or to address <addr2> if specified. Disassembled code is displayed in
  347. main window. Display halts when the screen is filled. Press any key,
  348. except Esc, to continue disassembly for up to 15 bytes, or until address
  349. <addr2> is exceeded. Pressing Esc key immediately terminates
  350. disassembly. If only addr1 is specified, and it is the same as the
  351. current program counter, then disassembly stops after only one line is
  352. displayed.
  353. This provides a convenient method of tracing program code when using a
  354. Trace macro, which should contain the command: DASM *. Note that DASM
  355. will display a symbol in place of its value if one exists.
  356.  
  357. Usage:
  358. DASM $B3                 Disassembles MCU addresses $B3 to $C2
  359. DASM $BF00 $BFFF         Disassembles MCU addresses $BF00 to $BFFF
  360.  
  361. Related command: ASM,LS
  362. *DB startaddr [endaddr]       - Display MCU memory
  363.  
  364. This command displays the contents of memory starting at <startaddr> and
  365. ending at <endaddr>. If <endaddr> is not specified then the contents of
  366. <startaddr> and the following 15 locations are displayed.
  367.  
  368. Usage:
  369. DB $1000            Display MCU memory addresses from $1000 to $100F
  370. DB $C000 $CFFF      Display MCU memory addresses from $C000 to $CFFF
  371.  
  372. Related commands: BF,MS,MD
  373. *DEBUG              - Reserved word
  374.  
  375. This command is reserved by PCbug11 for development use. Macros cannot
  376. be labelled using this name.
  377. *DEFINE symbol value|address       - Define a symbol
  378.  
  379. This command allows the user to explicitly define the value of a symbol.
  380. Each symbol has a name and a value.
  381.  
  382. The symbol name may consist of lower and/or upper case letters. The case
  383. of each letter is sensitive. That is abc does not equal ABC. In use
  384. symbols are simply replaced by their value in commands and the value is
  385. replaced by the symbol name in a disassembly listing.
  386.  
  387. Usage:
  388. DEFINE PORTA $1000       Define symbol PORTA=$1000
  389. DEFINE mask1 45          Define mask1=45 ($2D)
  390.  
  391. Related commands: LS,UNDEF
  392. *DEFM macroname|TRACE|AUTOSTART]   - Define Command, Trace or
  393.                                    Autostart Macro
  394.  
  395. This command allows users to create command sequences (macros), which
  396. can be executed simply by typing the name of the macro. Up to 10
  397. parameters can be passed to command macros. Within the macro, the
  398. required parameter is specified by the operator @N, where N is a single
  399. digit number between 0-9 inclusive. The syntax and use of pass
  400. parameters is the same as found in Motorola's assemblers. <macroname>
  401. can be any sequence of alphanumeric characters except reserved command
  402. names. Macros can be nested up to 5 levels. More than one macro is
  403. allowed at a time and these are held in an area known as the macro
  404. library. Macro libraries can be saved on disk and loaded again when
  405. required.
  406.  
  407. The reserved parameter name TRACE allows the user to define a macro
  408. which is executed on completion of every T (trace) command. See T for
  409. further details.
  410.  
  411. The reserved parameter name AUTOSTART allows the user to define a macro
  412. which is executed automatically on startup of PCbug11. To correctly use
  413. the AUTOSTART feature, the macro library containing the macro AUTOSTART
  414. must be saved using the SAVEM command. Then, from MS-DOS?, the macro
  415. library name must be specified as the last parameter on the command
  416. line.
  417. e.g. From PCbug11:
  418.      DEFM AUTOSTART
  419.      (type in macro definitions in main window. then press Esc key)
  420.      SAVEM STARTUP
  421.      QUIT      (Quits PCbug11)
  422.  
  423. Then from PC command line:
  424.      PCBUG11 -A STARTUP
  425.      (STARTUP library is loaded and AUTOSTART executed, if it exists)
  426.  
  427. The main window is used to type in the macro definition. Other macro
  428. names may be included in the definition. To terminate the definition,
  429. press the ENTER/RETURN key on a blank line. Once defined, the macro
  430. cannot be edited within PCbug11. It may be edited using a standard text
  431. editor once the file has been saved, since PCbug11 saves macros in a
  432. special text format (see LOADM). Macros can also be defined by the user
  433. using a text editor if the special format is used.
  434.  
  435. If the specified macro name already exists, then the existing macro is
  436. overwritten by the new definition.
  437.  
  438. Usage:
  439. DEFM CONFIG    Create macro called CONFIG
  440. DEFM TRACE     Create macro which is executed after T command
  441. DEFM AUTOSTART Create macro which can be executed automatically on
  442.                startup of PCbug11.
  443.  
  444. Related commands:CLRM,DELM,EDITM,LOADM,LSTM,SAVEM
  445. *DELM macroname|TRACE    - Delete Command or Trace Macro
  446.  
  447. As all macros must be accommodated within the free memory space
  448. available on the PC, this command allows the user to free up space for
  449. other definitions.
  450.  
  451. Usage:
  452. DELM CONFIG    Remove CONFIG macro name and definition
  453. DELM TRACE     Remove macro name and definition used by T (trace)
  454.                command
  455.  
  456. Related commands: DEFM,CLRM,SAVEM,LOADM,LSTM
  457. *DIR [mask]         - Display disk directory
  458.  
  459. This command causes the directory/contents specified by the mask to be
  460. displayed. Standard DOS masks apply.
  461.  
  462. Usage:
  463. DIR            Display contents of current directory
  464. DIR *.MCR      Display all the files in the current directory with the
  465.                extension .MCR (macros)
  466. DIR \          Display all files in the root directory
  467. DIR ..\*.PAS   Display all the files in the directory above the current
  468.                one with the extension .PAS
  469.  
  470. Related command: TYPE
  471. *DOS [command]           - Shell to DOS/Execute DOS command
  472.  
  473. If no command parameter specified, then DOS causes PCbug11 to shell to
  474. MS-DOS?. To return to PCbug11, type EXIT at the DOS prompt. If a command
  475. is specified, then PCbug11 will execute the command, and return to
  476. PCbug11. Prior to returning, the program PCBUGRTN.EXE is executed (this
  477. program must be stored in the same directory as PCBUG11.EXE). This
  478. program can be user defined if required. The supplied version simply
  479. displays a message and waits for any key press.
  480.  
  481. Usage:
  482. DOS COPY *.TXT a:/V      Execute COPY command and return to PCbug11
  483. *EDITM macrnam           - Edit a macro
  484.  
  485. This command allows the user to edit macros once they are defined/loaded
  486. into PCbug11. It is a full screen editor type and uses various function
  487. keys to edit the macros.
  488.  
  489. On executing the command PCbug11 displays the first 10 lines of the
  490. macro or less if there are fewer lines in a new window. Each line is
  491. preceded by a digit 0 to 9.
  492.  
  493. The editor obeys the following commands:
  494.  
  495. <alphanumeric>  Insert key pressed into the current macro text.
  496. Character will replace current one if insert is off. If insert is on the
  497. character will be inserted before current character.
  498.  
  499. <del>     The delete key will delete the character current under the
  500.           cursor.
  501.  
  502. <ins>     Toggle insert function on/off. Default is on.
  503.  
  504. <enter>   Insert a new line in the macro.
  505.  
  506. <pgdn>    The page down key displays the 10 lines following the current
  507.           cursor line.
  508.  
  509. <pgup>    The page up key displays the 10 lines before the current
  510.           cursor line.
  511.  
  512. <esc>     The escape key aborts the edit. The macro is not saved.
  513.  
  514. <F3 key>  Complete edit and save alterations in macro library.
  515.           Note ALT-Q and ALT-E will also perform this function.
  516.  
  517. Users move from line to line by pressing the arrow keys to move in the
  518. direction indicated. Lines which do not contain any characters after the
  519. edit are removed automatically. There is no direct command to delete a
  520. line. If the first characters in the line are spaces then they are
  521. removed
  522.  
  523. If the macro does not exist it is created as a null macro. If a null
  524. macro is edited, only the first line is displayed (as a blank line).
  525.  
  526. Usage:
  527. EDITM macro1        Edit the macro macro1.
  528.  
  529. Related commands: CLRM,DEFM,DELM,LOADM,LSTM,SAVEM
  530. *EEPROM [startaddr [endaddr]]    - Display/Clear/Set EEPROM
  531.                                    Address Range(s)
  532.  
  533. This command allows the user to transparently perform memory modify
  534. operations on the 68HC11 internal EEPROM, including the CONFIG register.
  535. Once an EEPROM address range is specified, all memory write operations
  536. within that range will be handled by the appropriate EEPROM programming
  537. algorithm. The command will not accept an address range which includes
  538. the PPROG register.
  539. Instructions affected: ASM, BR, LOADS, MM,MOVE, MS, NOBR, T
  540.  
  541. Usage:
  542. EEPROM              Display memory address range to use EEPROM
  543.                     algorithm.
  544. EEPROM 0            Clear all EEPROM memory address ranges.
  545. EEPROM $103F        Enable a write to address $103F to use EEPROM
  546.                     algorithm.
  547. EEPROM $B600 $B6FF  Enable writes within range $B600-$B6FF to use
  548.                     EEPROM algorithm
  549.  
  550. ------------------------------------------------------------------------
  551.  
  552. 2/ EEPROM DELAY mS  - Set EEPROM erase/write programming time
  553.  
  554. This command allows the user to specify the EEPROM Erase and Write
  555. programming time, within the range Min_delay to 255mS. The value of
  556. Min_delay depends on the serial baud rate, since the EEPROM programming
  557. algorithm used by PCbug11 relies on serial data transfer time. With a
  558. 9600 baud serial rate, the minimum delay time is 12mS. Note EPROM DELAY
  559. has the same effect as this command, care should be taken when using
  560. both commands.
  561.  
  562. Usage:
  563. EEPROM DELAY 20     Sets the Erase and Write time delay to 20mS
  564. EEPROM DELAY        Display the delay time in use
  565.  
  566. -----------------------------------------------------------------------
  567.  
  568. 3/ EEPROM ERASE [option] [addr]    - Display/Change EEPROM Erase before
  569.                                    Write function or bulk erase EEPROM.
  570.  
  571. This command allows the user to enable or disable EEPROM byte erasure
  572. before byte programming. The default state is Erase-before-Write
  573. Enabled. Another option of this command allows bulk erasure of the
  574. EEPROM array at $B600-$B7FF, or at the address specified by <addr>.
  575.  
  576. Usage:
  577. EEPROM ERASE             Display EEPROM Erase-before-Write state
  578. EEPROM ERASE DISABLE     Disable EEPROM Erase-before-Write
  579. EEPROM ERASE ENABLE      Enable EEPROM Erase-before-Write
  580. EEPROM ERASE BULK        Bulk erase EEPROM array starting at $B600
  581. EEPROM ERASE BULK $E000  Bulk erase EEPROM array starting at $E000
  582.  
  583. Note: After executing EEPROM ERASE BULK, Erase-before-Write is
  584. automatically disabled. This allows the fastest download of S records to
  585. EEPROM using the LOADS command. The bulk erase time defaults to
  586. approximately 200mS. It is recommended that Erase-before-Write be
  587. enabled before executing commands which may modify non-erased EEPROM.
  588. e.g. ASM,BR,T
  589. *EPROM [startaddr [endaddr]]     - Display/Clear/Set EEPROM Address
  590.                                    Range(s)
  591.  
  592. This command allows the user to transparently perform memory modify
  593. operations on the 68HC711 internal EPROM. Once an EPROM address range is
  594. specified, all memory write operations within that range will be handled
  595. by the EPROM programming algorithm. The command will not accept an
  596. address range which includes EPROG/PPROG.
  597.  
  598. Note that in general the EPROM command will only operate if an external
  599. programming voltage is applied. IN GENERAL THE PROGRAMMING VOLTAGE
  600. SHOULD NOT BE PRESENT BEFORE Vcc IS PRESENT. ALSO THE PROGRAMMING
  601. VOLTAGE SHOULD NOT BE PRESENT AFTER Vcc IS REMOVED. Also the programming
  602. voltage is generally applied to the XIRQ pin and so an XIRQ talker may
  603. not be used. PLEASE CONSULT THE HC11 DATA/INFORMATION SHEET BEFORE USING
  604. PCbug11 WITH EPROM PROGRAMMING.
  605.  
  606. Instructions affected: ASM, LOADS, MOVE, MS, NOBR, T
  607.  
  608. Usage:
  609. EPROM               Display memory address range to use EPROM
  610.                     algorithm.
  611. EPROM 0             Clear all EPROM memory address ranges.
  612. EPROM $D000 $FFFF   Enable writes within range $D000-$FFFF to use
  613.                     EPROM algorithm
  614.  
  615. ------------------------------------------------------------------------
  616.  
  617. 2/ EPROM DELAY mS   - Set EPROM erase/write programming time
  618.  
  619. This command allows the user to specify the EPROM Write programming
  620. time, within the range Min_delay to 255mS. The value of Min_delay
  621. depends on the serial baud rate, since the EPROM programming algorithm
  622. used by PCbug11 relies on serial data transfer time. With a 9600 baud
  623. serial rate, the minimum delay time is 12mS. Note EEPROM DELAY has the
  624. same effect as this command, care should be taken when using both
  625. commands.
  626.  
  627. Usage:
  628. EEPROM DELAY 20     Sets the Erase and Write time delay to 20mS
  629. EEPROM DELAY        Display the delay time in use
  630. *FIND byte|word addr1 addr2     - Find a bit pattern in MCU memory
  631.  
  632. <word> is a 2 byte value.
  633. This command will read and search through the memory address range
  634. specified by the last 2 parameters in the command line. The addresses of
  635. all occurrences of the 1st parameter (byte or word) are displayed in the
  636. main window. The syntax above is the simplest form, where a byte
  637. parameter is simply a value in range $00-$FF and a word is in the range
  638. $100-$FFFF. A maximum pattern of 4 consecutive bytes may be searched
  639. for. If the pattern contains leading $00s then the 1st parameter after
  640. FIND must be the byte count of the pattern to search for.
  641.  
  642. Usage:
  643. FIND $AA $E000 $E3FF          Find and display all occurrences of $AA in
  644.                               address range $E000 to $E3FF inclusive.
  645. FIND $AA55 $B600 $B7FF        Find and display all occurrences of $AA55
  646.                               in 68HC11A1 EEPROM (Addresses $B600 to
  647.                               $B7FF)
  648. FIND $0012 $F800 $FFFF      Find and display all occurrences of $0012
  649.                               in address range $F800 to $FFFF.
  650. FIND $00 $1234 $C000 $DFFF  Find and display all occurrences of
  651.                               $001234 in address range $C000 to $DFFF.
  652.  
  653. ------------------------------------------------------------------------
  654.  
  655. 2/ FIND mnemonic addr1 addr2  - Find a mnemonic in MCU memory
  656.  
  657. This syntax eases the search for specific assembler code. The wild card
  658. operator ? may be used in the mnemonic operand to force a search for the
  659. opcode only. If the mnemonic addressing mode is not an indexed one, then
  660. its operand must be immediately preceded, without a space, by one of the
  661. following 3 symbols as appropriate: # (immediate); < (direct); >
  662. (extended)
  663.  
  664. Usage:
  665. FIND LDAA >$1234 $E000 $E200  Find and display all occurrences of
  666.                               LDAA >$1234 in address range $E000 to
  667.                               $E200.
  668. FIND LDAB $34,X $C230 $C560   Find and display all occurrences of
  669.                               LDAB $34,X in address range $C230 to $C560
  670. FIND LDX #? $F000 $F2FF       Find and display all occurrences of
  671.                               immediate load X opcode in range $F000
  672.                               to $F2FF
  673.  
  674. Note that a maximum of 4 characters can be searched for.
  675. *G [addr]                     - Start user code execution
  676.  
  677. This command causes the 68HC11 to begin executing the user code. If
  678. <addr> is not specified then execution will commence at the current
  679. program counter. If <addr> is specified then execution will commence at
  680. that address.
  681.  
  682. Usage:
  683. G         Commence program execution at current program counter
  684. G $B600   Commence program execution at $B600
  685.  
  686. Related command: S
  687. *HELP [command]          - Display help information
  688.  
  689. This command displays help information in a window which is displayed on
  690. top of the main window. If no <command> is specified then a general help
  691. screen is displayed. The user may scroll through the help window by
  692. using the up and down arrows and page up and page down keys. The user is
  693. unable to alter the contents of the help information. The help window is
  694. cleared by pressing the ESC key.
  695.  
  696. The help information is stored in a text file called PCBUG11.HLP. The
  697. default help option is help MENU which displays the help available.
  698.  
  699. Usage:
  700. HELP      Display general help menu ( same as HELP MENU)
  701. HELP RS   Display help for RS command
  702. *KLE      - Kill last error message
  703.  
  704. This command causes the last error/break point window to be cleared.
  705.  
  706. Usage:
  707. KLE
  708.  
  709. Related commands: CLS
  710. *LOADM [filename] [macroname] - Load Macro Definitions from
  711.                               Default/User File and optionally
  712.                               immediately execute macro.
  713.  
  714. This command loads a library of previously defined macros stored on disc
  715. with the SAVEM command or created by the user using a text editor. The
  716. format of the file is checked against the macro rules and is not loaded
  717. if the format is not valid - see below. The newly loaded library is
  718. added to any existing library. If <macroname> is specified, and exists
  719. in the newly loaded library, it is immediately executed after loading.
  720. The default extension for loading macro libraries is .MCR.
  721.  
  722. Usage:
  723. LOADM          Loads macro library from default file PCBUG11.MCR
  724. LOADM USERLIB  Loads macro library from files USERLIB.MCR
  725. LOADM A A      Loads macro library from file A.MCR and immediately
  726.                executes the macro named A.
  727.  
  728. Related commands: CLRM,DEFM,DELM,EDITM,LSTM,SAVEM
  729.  
  730.  
  731. Valid text format for macro files
  732.  
  733. DEFM macroname
  734. BEGIN
  735.      macro_instructions
  736. END
  737.  
  738. macroname is the name of the macro being defined
  739. macro_instructions are the PCbug11 instructions which the macro contains
  740.  
  741. Comments are allowed and are enclosed in { } brackets.
  742.  
  743. Note that comments are stripped out by PCbug11 when loaded. If a library
  744. is saved any comments present when the macros are loaded are lost.
  745.  
  746. Parameters are passed into macros by the @ symbol. That is @0 will be
  747. replaced by the first parameter when calling the macro, @1 will be the
  748. second etc.
  749. *LOADS filename [loadaddr]    - Load S Record File into MCU
  750.                               Memory, at optional new start address.
  751.  
  752. The <filename> parameter in the command is of the form <filename.ext>
  753. If no extension is specified then .S19 is assumed by the monitor. The
  754. default path is the current working directory, but the user may specify
  755. any path and/or drive letter in accordance with the rules of MS-DOS?.
  756. Only S1 records are loaded. All other S record types are ignored, as are
  757. blank lines. Invalid format lines may generate an error message.
  758.  
  759. The S record data is normally loaded into MCU memory at the addresses
  760. specified in the S1 record load address field. However, the S record
  761. data can be relocated, during loading, to an alternative starting
  762. address by including the required address on the command line. During
  763. loading, PCbug11 traps certain mode-dependent user vectors, to give the
  764. monitor priority - these vectors are:
  765.  
  766. In Bootstrap mode:  SWI   - Used for breakpoint and trace processing.
  767. In External mode :  RESET - Used to start the monitor after a hardware
  768.                          reset.
  769.                     SWI   - Used for breakpoint and trace processing.
  770.                     XIRQ  - Used by the external ACIA to provide highest
  771.                          priority host communication.
  772.  
  773. Note that all these vectors are available to the user. The only
  774. difference is that there is a slight speed overhead associated with
  775. their execution. However, if no user breakpoints are defined, then user
  776. SWI instructions will be executed in real time, with no monitor
  777. overhead. Refer to the source listings of the appropriate talker code to
  778. determine the effects of user RESET and XIRQ on your software.
  779. *LS symbol          - Display Macro Names/Definitions
  780.  
  781. The currently defined symbols are listed by this command. The name
  782. symbol may include the * terminator which indicates a wild card
  783. character. This may appear only at the end of the symbol name The wild
  784. card indicates any combination of letters is possible and is used to
  785. display symbols of similar name.
  786.  
  787. Usage:
  788. LS *           Display all symbols
  789. LS one         Display value of symbol one
  790. LS PORT*       Display all symbols which commence with the letters PORT.
  791. *LSTM [macroname|TRACE]  - Display Macro Names/Definitions
  792.  
  793. This command displays either all macro names in the current library, or
  794. the expanded definition of a specified macro. Where macro names are used
  795. within a macro definition, the display on the screen is indented at each
  796. nested level.
  797.  
  798. Usage:
  799. LSTM           Display the names of all macros in the current library
  800. LSTM CONFIG    Display the definition of macro CONFIG
  801. LSTM TRACE     Display the definition of the macro used after execution
  802.                of the T (trace) command.
  803.  
  804. Related commands: CLRM,DEFM,DELM,EDITM,LOADM,SAVEM
  805. *MD startaddr [endaddr]  - Display MCU memory
  806.  
  807. This command displays the contents of memory starting at <startaddr> and
  808. ending at <endaddr>. If <endaddr> is not specified then the contents of
  809. <startaddr> and the following 15 locations are displayed.
  810.  
  811. Usage:
  812. MD $1000       Display MCU memory addresses from $1000 to $100F
  813. MD $C000 $CFFF Display MCU memory addresses from $C000 to $CFFF
  814.  
  815. Related commands: BF,DB,MS
  816. *MM addr       - Modify memory from addr
  817.  
  818. This command modifies memory from the address specified in the command
  819. line. The contents of each memory location selected are displayed and
  820. the user may then alter this by entering a value or select the next
  821. location by pressing return. Memory may also be stepped through by using
  822. the up and down arrow keys. The memory modify is completed by pressing
  823. the <ESC> key. If the memory area has been predefined as EEPROM or EPROM
  824. then the modify will be transparent to the user into these areas. An '='
  825. on the memory line will cause the current location to be modified and
  826. then stay at the same address. The command is also terminated by having
  827. a '.' on the line. Note that only hex digits are accepted and no digits
  828. will be accepted on a line following a '.' .
  829.  
  830. Usage:
  831. MM $100        Modify from address $100.
  832.  
  833. Related commands: MS
  834. *MOVE addr1 addr2 addr3  - Move memory between addr1 and addr2 to addr3
  835.  
  836. This command performs a memory move. The contents of the source memory
  837. locations are unaltered. The destination address is indicated by addr3
  838. and will be filled with the contents of addr1 to addr2. If the memory
  839. area has been predefined as EEPROM or EPROM then the move will be
  840. transparent to the user into these areas.
  841.  
  842. Usage:
  843. MOVE $100 $150 $200      Move $50 bytes from $100 to $200
  844.  
  845. *MS addr byte|word [byte|word]     - Set MCU Memory Byte(s) or Word(s)
  846.  
  847. This command forces 8 bit or 16 bit values into MCU memory, starting at
  848. address <addr>. A maximum of 9 values (8 or 16 bit) can be specified
  849. after parameter <addr>. Each value is written to consecutive addresses
  850. starting at <addr>. If the starting address is in an EEPROM block (as
  851. specified by the EEPROM command), then an EEPROM algorithm will be used
  852. to store the value. This action is completely transparent to the user.
  853.  
  854. Note: When setting memory to $00, ensure that the $00 is not specified
  855. in the most significant byte of a 16 bit value, as this will be
  856. interpreted as an 8 bit value and may result in incorrect addressing of
  857. MCU memory.
  858.  
  859. Usage:
  860. MS $1000 $AA        Set MCU memory address $1000 to a value of $AA
  861. MS $C000 $1234 $56  Set MCU memory addresses $C000,$C001,$C002 to
  862.                     the values $12,$34,$56 respectively.
  863. MS $50 $55AA $FF00  Set MCU memory addresses $50,$51,$52,$53 to the
  864.                     values $55,$AA,$FF,$00 respectively.
  865.  
  866. Related commands: BF,MD
  867. *MSG [string]       - Display Message in Main Window
  868.  
  869. Prints string to screen, without command line trace.
  870. The RTS line (write protect control) can be toggled if <string> is ^P.
  871. *NOBR [address]     - Remove all/specified Break Points
  872.  
  873. If no parameter is specified after the command, then all Breakpoints are
  874. removed from the breakpoint table, and the SWI vector is restored to its
  875. previous state. This implies that, if a user SWI vector had been
  876. previously installed by the LOADS command, or was detected when PCbug11
  877. was first started, then user SWIs will run in real time without
  878. intervention by PCbug11. If a parameter is specified after the command,
  879. then the breakpoint at that address is removed.
  880.  
  881. Usage:
  882. NOBR           Remove all breakpoints, and restore previous SWI vector.
  883. NOBR $E034     Remove breakpoint at address $E034.
  884.  
  885. Related Commands: BR
  886. *PAUSE [mS]    - Wait for any Key Press/Delay Time
  887.  
  888. The PAUSE command is useful in macros, where macro execution is halted
  889. until either a key is pressed, or the specified time has elapsed.
  890. Continuation from a PAUSE command is also achieved when the byte value
  891. $4B is received on the PC serial port. This allows the target MCU to
  892. control the execution of PCbug11 macro commands.
  893.  
  894. Usage:
  895. PAUSE          Suspend command execution until any key is pressed,
  896.                or the value $4B is received on the PC serial port.
  897. PAUSE 1000     Suspend command execution for 1000mS.
  898.  
  899. Related commands: WAIT
  900. *PRINT         - Display PCbug11 revision number
  901.  
  902. This command displays the PCbug11 start up message. This shows the
  903. Motorola copyright message and the revision number in use.
  904.  
  905. Usage:
  906. PRINT     Display revision number
  907.  
  908. Related commands:VER
  909. *PROTECT [startaddr [endaddr]]     - Display/Clear/Set Write Protected
  910.                                    Address Range(s)
  911.  
  912. This command allows the user to inhibit PCbug11 from writing to any MCU
  913. memory location, either internal or external. Once the command is
  914. executed with an address or range of addresses, then PCbug11 will not
  915. permit any memory modify operation from taking place on those locations.
  916. If this is attempted, then an error message will appear to the right of
  917. the command line, indicating that the command has been terminated
  918. without modifying the memory location. Note that this command does not
  919. inhibit the user's own MCU code from writing to memory addresses.
  920. Instructions affected: ASM, BR, LOADS, MOVE, MS, NOBR, T
  921.  
  922. Usage:
  923. PROTECT             Displays all 'write protected' memory address
  924.                     ranges.
  925. PROTECT 0           Clears all 'write protected' memory address ranges.
  926. PROTECT $102B       Prevents PCbug11 from writing to BAUD register.
  927. PROTECT $FFC0 $FFFF Prevents PCbug11 from changing 68HC11 vectors.
  928. *QUIT [Y]           - Terminate PCbug11 session
  929.  
  930. This command causes PCbug11 to terminate. If <Y> is not specified then a
  931. further prompt is required before the session is ended. No check is made
  932. to see if breakpoints have been cleared or macros saved before the
  933. command is carried out.
  934.  
  935. Usage:
  936. QUIT      Terminate session (PCbug11 will confirm this with user)
  937. QUIT Y    Terminate session without confirmation
  938. *RD [T]             - Display/Trace MCU Registers
  939.  
  940. Without the option <T>, this command displays the current value of the
  941. MCU's registers in the register window. With the option T, the registers
  942. are displayed in the main window, allowing a continuous register trace
  943. to be seen. The command can be executed while the MCU is executing user
  944. code. By careful use of both options, the MCU state at a particular
  945. point can be permanently frozen on screen, using the RD command alone,
  946. whilst continuously displaying the newest state using the RD T option.
  947.  
  948. Related commands: RM,RS
  949. *RESET [addr]  - MCU Hardware Reset with Existing/New Reset Vector.
  950.  
  951. This command causes the MCU to generate a hardware reset and optionally
  952. start execution of user code at <addr> or at the address specified by a
  953. previous RESET command. Once the reset occurs, the default
  954. implementation of PCbug11 causes the talker code to re-initialised, and
  955. then the MCU either idles, if no user specified address was given in the
  956. command line, or the talker code jumps to the address specified by
  957. <addr> on the command line. Note that once <addr> has been specified, it
  958. is maintained in the talker code until replaced by another value.
  959. Refer to the appropriate talker code source listing for details.
  960.  
  961. Note:
  962. To simulate an external hardware reset, the RESET command forces the MCU
  963. to generate an internal reset which also causes the external RESET pin
  964. to go low. To produce the internal reset, the Clock Monitor Fail
  965. detector is used. PCbug11 implements this by downloading and executing
  966. the following code in a reserved area of RAM:
  967.      STY cme_jmp    Clock monitor fail jump address
  968.      STAA OPTION,X  OPTION=$39
  969.      STAB TEST1,X   TEST1=$3E
  970.      STOP
  971.      JMP user_start <- in case STOP doesn't generate CME reset!
  972.  
  973. Where:
  974.      Y=user reset address
  975.      X=$1000   Default I/O register base address for M68HC11
  976.      ACCA=$08  Enables the clock monitor in the OPTION reg.
  977.  
  978. The values passed to ACCB, CCR and Y depend on the MCU type & operating
  979. mode.
  980.  
  981. In Bootstrap mode: If MCU is an 'A8, ACCB=0 to clear the DISR bit in
  982. TEST1 reg.
  983. For all other devices, ACCB=4 to force the clock monitor reset by
  984. setting the FCM bit in TEST1 reg. For all devices, CCR=$40 to enable the
  985. STOP instruction and I bit interrupts, and disable XIRQ to allow
  986. execution of the instruction after STOP if all else fails! The user
  987. reset address is $0000.
  988.  
  989. In External mode:  For all devices, ACCB=$0, since TEST1 is not
  990. accessible in normal modes. CCR=$10 to enable STOP and XIRQ, and disable
  991. I bit interrupts. The user reset address is defined by the user in the
  992. appropriate .MAP file
  993.  
  994. Note also that the above reset code forces the value in the Clock
  995. Monitor Fail vector, before starting user code execution. This means
  996. that the user must dynamically assign this vector in software before
  997. using the feature. The effect of this internal reset is identical to an
  998. external hardware reset, except that the COP Clock Monitor fail vector
  999. is taken instead of the RESET vector - provided the rising edge of the
  1000. reset output signal is not delayed by external capacitance. Refer to the
  1001. M68HC11 data book and User manual for details.
  1002. *RESTART [option]   - Restart PCbug11 with Same/New Option.
  1003.  
  1004. This command performs a complete restart of the monitor, and is
  1005. equivalent to typing the MS-DOS? command: PCBUG11 option. The only
  1006. difference is that command macros are retained. Assembler macros and
  1007. symbols are lost.
  1008.  
  1009. Usage:
  1010. RESTART        Restart monitor with option specified when PCbug11
  1011.                was first executed
  1012. RESTART -XE    Restart monitor with -XE option. Equivalent to
  1013.                typing command:PCBUG11 -XE
  1014.  
  1015. Note: RESTART is useful when complete communication failure occurs, or
  1016. when the MCU is given an external hardware reset in bootstrap mode.
  1017. *RM            - Modify MCU Registers in window
  1018.  
  1019. This command allows the MCU registers to be modified in the register
  1020. window using the normal keyboard editing keys. Each register is fielded
  1021. in its own section of the window. To move within and between fields, the
  1022. following keys are used:
  1023.  
  1024. Up arrow       -  Move back one register field
  1025. Down arrow     -  Move forward one register field
  1026. Left arrow     -  Move cursor backwards in current field
  1027. Right arrow    -  Move cursor forward in current field
  1028. Ins            -  Insert at current cursor position
  1029. Del            -  Delete at current cursor position
  1030. Return         -  Quit register edit and update all MCU registers
  1031. Esc            -  Quit register edit without changing MCU registers
  1032.  
  1033. Note: All fields, except SXHINZVC can be edited in decimal, binary or
  1034. hex format. The SXHINZVC field is in binary format only. After quitting
  1035. the edit the RD command is automatically run to confirm any register
  1036. changes.
  1037.  
  1038. Related commands: RD,RS
  1039. *RS register value       - Set value of MCU register
  1040.  
  1041. This command allows the user to force the value of any MCU register.
  1042. Only one register at a time may be set. The register window is also
  1043. updated.
  1044. Valid options for <register> are: PC, ACCA, ACCB, X, Y, CCR, SP
  1045.  
  1046. Usage:
  1047. RS ACCA $61    Set MCU accumulator A to value $61
  1048. Related commands: RD,RM
  1049. *S             - Stop user code execution
  1050.  
  1051. This command causes the 68HC11 to stop executing the user code.
  1052.  
  1053. Usage:
  1054. S              Stop program execution
  1055.  
  1056. Related command: G
  1057. *SHELL ["command" ;P]    - Shell to DOS/Execute DOS command
  1058.  
  1059. If no command parameter specified, then SHELL causes PCbug11 to shell to
  1060. MS-DOS?. To return to PCbug11, type EXIT at the DOS prompt. If a command
  1061. is specified, then PCbug11 will execute the command, and return to
  1062. PCbug11. Prior to returning, the program PCBUGRTN.EXE is executed (this
  1063. program must be stored in the same directory as PCBUG11.EXE). This
  1064. program can be user defined if required. The supplied version simply
  1065. displays a message and waits for any key press. If the ;P option is
  1066. specified then the command is executed and immediately returns to
  1067. PCbug11 without running PCBUGRTN.
  1068.  
  1069. Usage:
  1070. SHELL "COPY *.TXT a:/V"  Execute COPY command and return to PCbug11
  1071. *SAVEM [filename]        - Save Macro Definitions in Default/User File
  1072.  
  1073. This command saves on disc, the library of macros created by the DEFM
  1074. command. Macros are stored on a disc file with extension .MCR. These
  1075. files are normal text files and can be edited with standard text
  1076. editors. However, there is a special format used in the macro files
  1077. which the user must obey at all times if the macros are to be
  1078. successfully loaded in to PCbug11 again (see LOADM). If the file name is
  1079. omitted from the command, then the default name of PCBUG11 is used.
  1080.  
  1081. Note : Users should take care when saving a library to the same file
  1082. that the library was loaded from. If any comments existed in the
  1083. original library then they will be lost as PCbug11 strips out comments
  1084. when loading macros.
  1085.  
  1086. Usage:
  1087. SAVEM USERLIB  Save macro library in file USERLIB.MCR
  1088. SAVEM          Save macro library in default file PCBUG11.MCR
  1089.                (Equivalent to: SAVEM PCBUG11)
  1090.  
  1091. Related commands: CLRM,DEFM,DELM,EDITM,LOADM,LSTM,SAVEM
  1092. *T [addr]           - Trace User Code
  1093.  
  1094. This command single step traces program code from the address specified
  1095. by the PC value, or addr, to the next logical address. Executing the
  1096. command causes a SWI to be placed at the next executable address(es). If
  1097. a command macro called TRACE has been defined, it is executed on
  1098. completion of the T command.
  1099.  
  1100. A useful Trace macro is: RD
  1101.                          DASM *
  1102.  
  1103. If the next executable instruction involves a branch to the current
  1104. address, the trace is disabled, to allow the instruction to execute.
  1105. However, PCbug11 will still display the TRACE state. Since the Talker is
  1106. interrupt driven, this does not cause any hang-up of the monitor, and
  1107. all PCbug11 commands are still available.
  1108. *TERM [X1 Y1 X2 Y2]      - Simple windowed terminal emulator
  1109.  
  1110. With no options specified, this command starts a simple terminal
  1111. emulator using the currently defined terminal window. Initially this is
  1112. the entire screen area.
  1113. Optional values <X1>,<Y1>,<X2> and <Y2> redefine the window in which the
  1114. terminal emulator operates. Note that if used, all values must be
  1115. specified - their meanings are as follows:
  1116.      <X1> - Left column
  1117.      <Y1> - Top  row
  1118.      <X2> - Right column
  1119.      <Y2> - Bottom row
  1120.  
  1121. The values need to be specified only on the first use of the TERM
  1122. command - they remain in force until replaced by another set of values.
  1123. To quit the terminal emulator, press the Esc key.
  1124. *TYPE [filename]         - Display contents of filename
  1125.  
  1126. This command causes the contents of the file filename to be displayed.
  1127. Standard DOS path names apply.
  1128.  
  1129. Usage:
  1130. TYPE RUNTIME.MCR    Display contents file RUNTIME.MCR in current
  1131.                     directory
  1132. TYPE \TEMP.BIT      Display file TEMP.BIT in root directory
  1133. TYPE ..\LIST.PAS    Display the file LIST.PAS in the directory above the
  1134.                     current one
  1135.  
  1136. Related command: DIR
  1137. *UNDEF symbol            - Undefine a symbol
  1138.  
  1139. Remove symbol from the symbol table list. The * wildcard character may
  1140. be used. This character can only be used at the end of a symbol name and
  1141. indicates a random number of characters. The symbol * can be used on its
  1142. own and indicates ALL symbols - use with care!
  1143.  
  1144. Usage:
  1145. UNDEF one           Clear the symbol one
  1146. UNDEF PORT*         Clear all macros whose names begin with the letters
  1147.                     PORT
  1148. UNDEF *             Clear all macros
  1149. *VER                - Display PCbug11 revision number
  1150.  
  1151. This command displays the PCbug11 start up message. This shows the
  1152. Motorola copyright message and the revision number in use.
  1153.  
  1154. Usage:
  1155. VER  Display revision number
  1156.  
  1157. Related commands: PRINT
  1158. *VERF ERASE addr1 [addr2]     - Verify that memory contains $FF
  1159.  
  1160. This command checks that the memory area specified is erased. That is
  1161. contains $FF. If addr2 is not specified then the byte at addr1 is
  1162. checked. If addr2 is specified then the block of memory between addr1
  1163. and addr2 is checked. If the memory does not match, then the memory
  1164. locations which are not erased are displayed along with the value it
  1165. contains.
  1166.  
  1167. Usage:
  1168. VERF ERASE $100          Check address addr1 is erased
  1169. VERF ERASE $E000 $FFFF   Check address block from $E000 to $FFFF is
  1170.                          erased
  1171.  
  1172. ------------------------------------------------------------------------
  1173.  
  1174. VERF SET addr1 addr2 value    - Verify that memory contains value
  1175.  
  1176. This command checks the contents of memory from addr1 to addr2 and
  1177. verifies that each byte is equal to value. If the location is not equal
  1178. to value then the memory value is displayed. Value is a single byte
  1179. value
  1180.  
  1181. Usage:
  1182. VERF SET $100 $1FF $35   Check that the block from $100 to $1FF contains
  1183.                          $35.
  1184.  
  1185. ------------------------------------------------------------------------
  1186.  
  1187. VERF filename [loadaddr]      - Verify S Record File against memory.
  1188.  
  1189. The default extension of <filename> is .S19. The default path is the
  1190. current working directory, but the user may specify any path and/or
  1191. drive letter in accordance with the rules of MS-DOS?. Only S1 records
  1192. are verified. All other S record types are ignored, as are blank lines.
  1193. Invalid format lines may generate an error message.
  1194.  
  1195. The S record data is normally compared with MCU memory at the addresses
  1196. specified in the S1 record load address field. However, the S record
  1197. data can be compared to an alternative starting address by including the
  1198. required address on the command line as <loadaddr>.
  1199.  
  1200.  
  1201. Related command: LOADS
  1202. *WAIT[ms]                     - Wait for ms
  1203.  
  1204. The WAIT command is useful in macros, where macro execution is halted
  1205. until either a key is pressed, or the specified time has elapsed.
  1206. Continuation from a WAIT command is also achieved when the byte value
  1207. $4B is received on the PC serial port. This allows the target MCU to
  1208. control the execution of PCbug11 macro commands.
  1209.  
  1210. Usage:
  1211. WAIT      Suspend command execution until any key is pressed,
  1212.           or the value $4B is received on the PC serial port.
  1213. WAIT 1000 Suspend command execution for 1000mS.
  1214.  
  1215. Related commands:PAUSE
  1216.  
  1217.